home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Science
/
RLaB
/
toolbox
/
max2.r
< prev
next >
Wrap
Text File
|
1994-04-25
|
346b
|
16 lines
//-------------------------------------------------------------------//
//
// Syntax: max2 ( A, B )
// Description:
// Return a matrix the same size as A and B with the largest
// elements taken from A and B.
//-------------------------------------------------------------------//
max2 = function(a,b)
{
return (b+(a-b).*(a>b));
};